.toggler{
	width: 80px;
	height: 36px;
	background: #333;
	border-radius: 20px;
	position: relative;
}

.toggler:before{
	content: 'ON';
	position: absolute;
	top: 10px;
	left: 13px;
	height: 2px;
	color: #26ca28;
	font-size: 14px;
}

.toggler:after{
	content: 'OFF';
	position: absolute;
	top: 10px;
	left: 46px;
	height: 2px;
	color: gray;
	font-size: 14px;
}

.toggler input[type=checkbox]{
	visibility: hidden;
}

.toggler label{
	display: block;
	width: 30px;
	height: 22px;
	border-radius: 20px;
	-webkit-transition: all .5s ease;
	-moz-transition: all .5s ease;
	-o-transition: all .5s ease;
	-ms-transition: all .5s ease;
	transition: all .5s ease;
	box-shadow: 0 0 5px rgba(0,0,0,.2);
	cursor: pointer;
	position: absolute;
	top: 7px;
	z-index: 50;
	left: 10px;
	background: #ddd;
}

.toggler input[type=checkbox]:checked + label{
	left: 42px;
	background: #26ca28;
}